package day03;

public class ContinueTest{
	public static void main(String[]args){
		for(int i=0; i<10; i++){
			if(i==5){
				continue;
			}
			System.out.print(i+" ");
		}
		System.out.println("==================");
		int i=0; 
		while(i<10){
			if(i==5){
				i++;
				continue;
			}
			System.out.println(i+" ");
			i++;
		}
		i = 0;
		do{
			if(i==5){
				i++;
				continue;
			}
			System.out.print(i+" ");
			i++;
		}while(i<10);
		System.out.println("==========================");
		for(int x=0; x<10; x++){
			for(int y=0; y<10; y++){
				if(x==y){
					continue;
				}
				System.out.print("x="+x+",y="+y);
			}
			System.out.println();
		}
		System.out.println("==========================");
		outer:for(int x=0; x<10; x++){
			for(int y=0; y<10; y++){
				if(x==y){
					continue outer;
				}
				System.out.print("x="+x+"y="+y+" ");
			}
			System.out.println();
		}
		
		if(3>2);{
			System.out.println("HaHa");
		}
		i=0;
		while(++i<10);
		System.out.println(i);
	}
}